package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.AdChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

public interface ChannelService extends IService<AdChannel> {
    /**
     * 根据名称查询分页频道信息
     * @param adChannelDto
     * @return
     */
    public ResponseResult findByNameAndPage(AdChannelDto adChannelDto);

    /**
     * 插入频道信息
     * @param adChannel
     * @return
     */
    public ResponseResult insert(AdChannel adChannel);

    /**
     * 删除频道信息
     * @param id
     * @return
     */
    public ResponseResult delete(Integer id);
}
